﻿using Abp.Domain.Entities;
using Abp.Timing;
using StockSystem.StockSystem.Customers;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace StockSystem.StockSystem.OutStocks
{
    [Table("SS_OutStockSummary")]
    public class OutStockSummary : Entity<int>
    {
        public OutStockSummary()
        {
            this.OperatingTime = Clock.Now;
        }
        //出库单号
        [Required]
        public string OutStockCode { get; set; }

        //客户        
        [Required]
        public int CustomerId { get; set; }
        public Customer Customer { get; set; }

        //操作人
        [Required]
        public string OperatingUser { get; set; }

        //操作时间
        [Required]
        public DateTime OperatingTime { get; set; }

        [Required]
        public Decimal TotalAmount { get; set; }

        [Required]
        public List<OutStockDetail> OutStockDetails { get; set; }
    }
}
